﻿using Microsoft.AspNetCore.DataProtection;

namespace HMS.Hosting.Authentication.Cookies;

public class CookieDataProtector : IDataProtector
{
    private readonly string _encryptKey;

    public CookieDataProtector()
        : this(string.Empty)
    {

    }

    public CookieDataProtector(string purpose)
    {
        _encryptKey = purpose;
    }

    public IDataProtector CreateProtector(string purpose)
    {
        return new CookieDataProtector(purpose);
    }

    public byte[] Protect(byte[] plaintext)
    {

        return plaintext;
    }

    public byte[] Unprotect(byte[] protectedData)
    {
        return protectedData;
    }
}